import instance from "@/utils/request";

let outDepotList={
    findPage(searchParams){
        return instance.get(`/aftersale-out-depot/list`,{params:searchParams})
    },
    queryAllDic(){
        return instance.get(`/depot-dict/dic`);
    },
    delById(id) {
        return instance.delete(`/aftersale-out-depot/deleteById/${id}`);
    },
    //根据id查询
    findById(id){
        return instance.get(`/aftersale-out-depot/${id}`);
    },
    //修改
    updateEntity(entity){
        return instance.put(`/aftersale-out-depot/update`,entity);
    },
    //添加
    addEntity(entity){
        return instance.post(`/aftersale-out-depot/insert`, entity);
    },
    /**
     * 批量删除
     */
    batchDelete(ids) {
        return instance.delete(`/aftersale-out-depot/batch/${ids}`);
    }
};

export  default outDepotList;